﻿using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;
using System;

namespace POSSystem.BLL
{
    public class View_OrderItems : _View_OrderItems
    {
        public static View_OrderItems GetOrderItems(int orderID)
        {
            try
            {
                View_OrderItems orderItems = new View_OrderItems();
                orderItems.Where.OrderID.Value = orderID;
                orderItems.Where.Deleted.Value = false;
                orderItems.Query.Load();

                return orderItems;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
